package com.qd.panda.model;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 点亮小区
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_apply_for_park")
public class ApplyForPark extends Model<ApplyForPark> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 小区名称
     */
    @TableField("name")
    private String name;
    /**
     * 市
     */
    @TableField("city")
    private String city;
    /**
     * 区
     */
    @TableField("area")
    private String area;
    /**
     * 街道
     */
    @TableField("street")
    private String street;
    /**
     * 道路名称/楼牌号
     */
    @TableField("corridor")
    private String corridor;
    /**
     * 申请人电话
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 处理时间
     */
    @TableField("handle_time")
    private LocalDateTime handleTime;
    /**
     * 状态:0未处理1处理成功2处理失败
     */
    @TableField("state")
    private Integer state;
    /**
     * 说明
     */
    @TableField("msg")
    private String msg;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 处理人
     */
    @TableField("handle_person_id")
    private String handlePersonId;
    /**
     * 处理人单位
     */
    @TableField("handle_org_id")
    private String handleOrgId;

    public void freeData() {
        this.id = null;
        this.name = null;
        this.city = null;
        this.area = null;
        this.street = null;
        this.corridor = null;
        this.mobile = null;
        this.addTime = null;
        this.updateTime = null;
        this.handleTime = null;
        this.state = null;
        this.msg = null;
        this.userId = null;
        this.handlePersonId = null;
        this.handleOrgId = null;
    }

}
